package com.cwits.wifi.ui.view;

import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;

import com.cwits.wifi.data.beans.FileInfo;

import java.util.ArrayList;
import java.util.List;

public class PictureLoader extends AsyncTaskLoader<List<FileInfo>> {
    private List<FileInfo> dataResult;
    private boolean dataIsReady;


    public PictureLoader(Context context) {
        super(context);

        deliverResult(dataResult);

    }

    @Override
    public List<FileInfo> loadInBackground() {
        List<FileInfo> list = new ArrayList<FileInfo>();


        return list;
    }

    @Override
    public void onContentChanged() {
        super.onContentChanged();
    }

    @Override
    protected void onStartLoading() {
        // 显示加载条
        super.onStartLoading();
    }

    @Override
    protected void onStopLoading() {
        // 隐藏加载条
        super.onStopLoading();
    }

    @Override
    public boolean takeContentChanged() {

        return super.takeContentChanged();
    }

}
